package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.KcpdDescBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface KcpdDescService extends BaseService<KcpdDescBean> {

	KcpdDescBean getKcpdDescBeanById(String id) throws Exception;
	
	void removeKcpdDescBeanById(String id) throws Exception;
	
	void removeKcpdDescBeanByIds(String ids) throws Exception;
	
	KcpdDescBean saveKcpdDescBean(KcpdDescBean crm) throws Exception;
	
	KcpdDescBean updateKcpdDescBean(KcpdDescBean crm) throws Exception;
	
	Page<KcpdDescBean>  findKcpdDescBeanByCond(KcpdDescBean bean,
			Page<KcpdDescBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveKcpdDescBeanExt(String sql) throws Exception;

	String findKcpdDescBeanExtCreate(String tableName) throws Exception;

	String findKcpdDescBeanExtEdit(String tableName, String id)
			throws Exception;

	String findKcpdDescBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasKcpdDescBeanExtData(String tableName, String id)
			throws Exception;
}